



/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __nernst_H
#define __nernst_H

#ifdef __cplusplus
 extern "C" {
#endif 

/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx.h"
#include "stdint.h"
   

/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
   
   
#define NernstRefVoltageDAC    3,3
#define NernstOpAmpGain        191
#define NernstUpThresh         0,015
#define NernstLoThresh         0,005
#define NernstADCRes           12


/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */

typedef struct stan_nernsta
{
  uint8_t Temperature;
  uint16_t Hi_state[20];
  uint16_t Low_state[20];
  uint16_t Current_time;
  uint8_t Lambda_FIFO;
  
}Lambda_Struct;
 
#ifdef __cplusplus
}
#endif

#endif /* __STM32F4xx_IT_H */
